home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Megahits 6
/
Megahits 6 (1995)(GTI - Rhein-Main-Soft)(DE)(Disc 1 of 2)[!].iso
/
german_ungepackt
/
181_210
/
germ_183
/
cliexe
/
cliexe.doc
< prev
next >
Wrap
Text File
|
1995-07-15
|
3KB
|
73 lines
CLIExe
CLIExe allow you to run/execute program/script from WB. His first goal
was to let you execute script in more simple way than XIcon/IconX. In
programming,'simple' should often means 'efficient'.
Mechanism:
In SHELL mode the process is very simple: CLIExe create a script by
replacing the ";" by CR ("\n") and after do a "NewShell FROM script", so this
way CLIExe is 100% compatible with CLI/Shell because IT IS a CLI/Shell.
In RUN mode the problem was very hard because of conjonction of some
lack of the NIL: and a very often bug. For programmers, the problem was
that if someone open "*" and write in it without testing successful of the
opening....crash.
So in RUN mode the IO was the same than parent CLI if you don't
specified the NOIO option.
If you run ClIExe from cli and the window was not closed when script was
executed, no problem at all else a GURU is posible.
If you specified the NOIO option CLIExe try to open the NULL: instade
the NILL: if success, no problem, if not, a GURU is possible.
However in most case there wasen't problem. Sorry it's not my fault.
Finaly a very GOOD news for progammers: you can supply to Execute() a
string containing more than one command, each command was separate by a
"\n" !
Execute( "cd ram:\nDir\nList\nWait 5", NULL, Output());
I discover this after a mistake when programing CLIExe, what a pity !
Usage:
CLIExe V1.3 © 1991 by S.R.
Usage: CLIExe <FULLCMDS> command1;command2;...
[MODERUN] [SHELLCMD] newshell_command
[WINDOW] con:a/b/c/d/title [STACK] stacksize
[TMPDIR] directory [PRI] pri [NOIO]
FULLCMD : Full command, each command was separate by a ";"
MODERUN : If yes, the command was execute like a Run without his own
window.
From CLI, the Input/Output was done in the CLI window unless
you specified the NOIO option, redirection are possible.
SHELLCMD : The command to execute to create the shell in SHELL mode
(default), usualy a NewShell/Ashell. default AShell.
WINDOW : the window for the shell.
STACK : The stack. default 4096.
TMPDIR : The directory where CLIExe put his temporary script. default T:.
PRI : The priority. default 0.
NOIO : No Input/Output in Run mode. default off.
Example:
CLI
1>CLIExe FULLCMD "cd Ram:;Dir;WaitMouse" SHELLCMD=NewShell WINDOW "CON:0/10/640/200/See that..." STACK 8000 TMPDIR Ram: PRI 1
WB
DEFAULT TOOL CLIExe
TOOL TYPES FULLCMD=CD Ram:;Dir;Status;Stack;Wait 10
SHELLCMD=NewShell
WINDOW=CON:0/10/640/200/See that...
STACK=10000
TMPDIR=T: